package com.njwb;

import com.njwb.mapper.StudentMapper;
import com.njwb.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class main {
    public static void main(String[] args) {
        SqlSession sqlSession = MybatisUtil.getSqlSession();
        try {
            StudentMapper mapper = sqlSession.getMapper(StudentMapper.class);

         mapper.findOrderWithUser(1l);
            sqlSession.commit();
            MybatisUtil.closeSqlsession();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
